package cn.oms.oms.service;

import cn.oms.oms.entity.Bill;
import cn.oms.oms.entity.Department;
import cn.oms.oms.vo.DepartmentVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-29
 */
public interface IDepartmentService extends IService<Department> {

    /**
     * 根据查询条件查询科室列表
     * @param departmentVo
     * @return
     */
    PageInfo<Department> selectDepartmentList(DepartmentVo departmentVo);

    /**
     * 查询科室详情
     * @param departmentVo
     * @return
     */
    Department selectDepartmentDetail(DepartmentVo departmentVo);

    /**
     * 新增科室
     * @param departmentVo
     * @return
     */
    String addDepartment(DepartmentVo departmentVo);

    /**
     * 修改科室
     * @param departmentVo
     * @return
     */
    String updateDepartment(DepartmentVo departmentVo);

    /**
     * 删除科室
     * @param id
     * @return
     */
    String deleteDepartment(Integer id);

}
